<?php

namespace plugin\admin\app\model;

use plugin\admin\app\model\Base;

/**
 * @property integer $id 主键(主键)
 * @property string $created_at 创建时间
 * @property integer $deleted 是否删除:0=否,1=是
 * @property integer $type 服务器类别:1=包机,2=动态,3=固定
 * @property integer $line_id 线路ID
 * @property integer $area_id 省份ID
 * @property integer $type_id 类别ID
 * @property integer $operator_id 运行商ID
 * @property string $name 地区名
 * @property integer $ip_number IP数量
 * @property integer $account_number 上号数量
 * @property integer $day_number 天数
 */
class V1Region extends Base
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'wa_v1_region';

    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $primaryKey = 'id';

    const UPDATED_AT = null;

    /**
     * 关联静态节点
     */
    public function nodeStatic()
    {
        return $this->hasMany('plugin\admin\app\model\V1NodeStatic','region_id','id');
    }
    
}
